//
//  OrderCell.m
//  AppointmentForCar
//
//  Created by Herron on 16/10/3.
//  Copyright © 2016年 Herron. All rights reserved.
//

#import "OrderCell.h"

@interface OrderCell()

@property (weak, nonatomic) IBOutlet UILabel *historyDateTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *historyIsCompleteLabel;
@property (weak, nonatomic) IBOutlet UILabel *historyOriginLabel;
@property (weak, nonatomic) IBOutlet UILabel *historyDestinationLabel;
@property (weak, nonatomic) IBOutlet UILabel *historyDriverNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *historyDriverPhoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *historyLicenseLabel;


@end

@implementation OrderCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (void)setupCell:(OrderModel *)model {
    self.historyDateTimeLabel.text = model.historyDateTime;
    self.historyIsCompleteLabel.text = model.historyIsComplete;
    self.historyOriginLabel.text = model.historyOrigin;
    self.historyDestinationLabel.text = model.historyDestination;
    self.historyDriverNameLabel.text = model.historyDriverName;
    self.historyDriverPhoneLabel.text = model.historyDriverPhone;
    self.historyLicenseLabel.text = model.historyLicense;
}

@end
